package com.topone.dataObject;

import com.topone.Enum.UserStatusEnum;
import com.topone.Enum.UserTypeEnum;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 用户信息
 * Created by Administrator on 2017/11/6,0006.
 */
@Entity
@Data
@DynamicUpdate
public class TcUser  extends BaseEntity{

    @Id
    private String userId;     //用户id
    private String openid; //用户微信openid
    private String userName; //用户名称,微信nickName
    private String password; //密码
    private String gender;   //性别
    private String handPhone; //用户手机
    private Integer userType= UserTypeEnum.COMMON.getCode();  //用户类型 0:普通会员 1：超级会员 2:管理员
    private Integer userStatus= UserStatusEnum.ON.getCode(); //用户状态 0:有效 1：失效
    private String email;     //邮箱
    private Integer credit;//积分
    private String city;//城市,微信获取
    private String province;//省份,微信获取
    private String country;//国家，微信获取
    private String headUrl;//微信头像
    private Long subscribeTime;
    private Boolean subscribe;
    private String remark;
    private Integer groupId;
    private String tagIds;
    private String language;
    private String unionId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHandPhone() {
        return handPhone;
    }

    public void setHandPhone(String handPhone) {
        this.handPhone = handPhone;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }
}
